package com.zhongli.devplatform.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.security.core.parameters.P;

import java.util.Date;

/**
 * @author wy
 * @since 2020/8/24
 */
@Data
@ApiModel
public class ReplyVO {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "回复目标id")
    private Integer replyId;

    @ApiModelProperty(value = "评论表id")
    private Integer commentId;

    @ApiModelProperty(value = "回复内容")
    private String comment;

    @ApiModelProperty(value = "回复用户id")
    private Integer fromId;

    @ApiModelProperty(value = "回复用户名")
    private String fromName;

    @ApiModelProperty(name = "headImgUrl",value = "头像")
    private String headImgUrl;

    @ApiModelProperty(value = "目标用户id")
    private Integer toId;

    @ApiModelProperty(value = "目标用户名")
    private String toName;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(name = "commonCount",value = "评论数")
    private Integer commentCount;

    @ApiModelProperty(name = "likeCount",value = "点赞数")
    private Integer likeCount;

    @ApiModelProperty(name = "isLike",value = "是否点赞")
    private Boolean isLike;

    /**
     * true 回复 comment
     * false 回复 reply
     */
    @ApiModelProperty(value = "回复类型")
    private Boolean replyType;

    @ApiModelProperty(name = "reply",value = "回复内容")
    private ReplyVO reply;
}
